<?php
namespace app\admin\validate;
use think\Validate;
class Link extends Validate{
	//友情链接验证
	
    protected $rule = [
        'title'  =>  'require|unique:link',
        'url' => 'require',
        'url' => 'url',
    ];
	
    protected $message  =   [
        'title.require' => '链接名称必须填写',
        'title.unique' => '链接名称不得重复',
        'url.require' => '链接地址不能为空',
        'url.url' => '请输入正确的链接地址',
    ];

}
